import request from '@/utils/request'
import defaultSettings from '@/settings'

// 查询在线用户列表
export function list(query) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/monitor/online/list',
    method: 'post',
    data: query
  })
}

// 强退用户
export function forceLogout(userId) {
  return request({
    url: defaultSettings.serviceUrl.moon_fast + '/monitor/online/offline?userId=' + userId,
    method: 'get'
  })
}
